package day11.afternoon;
/** 餐具 */
public class Tableware {
    /** 名字 */
    private String name;
    /** 成分 */
    private String component;
    public Tableware(){}
    public Tableware(String name,String component){
        this.name = name;
        this.component = component;
    }
    public void intro(){
        System.out.println("这是" + this.name + "是"+ component + "做的");
    }
    public void purpose(){
        System.out.println("吃饭时用的");
    }
    public String getName(){
        return name;
    }
    public void setName(String name){
        this.name = name;
    }
    public String getComponent(){
        return component;
    }
    public void setComponent(String component){
        this.component = component;
    }
}
